define(["jquery", "backbone", "Router", "transaction/TransactionWidget"], function($, backbone, Router, TransactionWidget) {
    var App = {};

    App._$rootEl = $("body");

    App._newTransactionWidget = new TransactionWidget();

    App._theRouter = new Router({
        $rootEl: App._$rootEl,
        defaultViews: [App._newTransactionWidget.getView()]
    });

    App.initialize = function() {
        var self = this;
        backbone.history.start();
        self._theRouter.navigate("", {trigger: true});
    };

    return App;
});